<?php
$dbHost = "localhost";
$dbUser = "root"; 
$dbPass = "root"; 
$dbDatabase = "piaimu"; 

//connet to the database 

$connection = mysql_pconnect("$dbHost", "$dbUser", "$dbPass") or die ("Error connecting to database."); 
mysql_select_db("$dbDatabase", $connection) or die ("Couldn't select the database."); 

//conectar para usar los stored procedures
$link = mysqli_connect($dbHost, $dbUser, $dbPass) or die ('Error connecting to mysql: ' . mysqli_error($link));
mysqli_select_db($link, $dbDatabase);

$link2 = mysqli_connect($dbHost, $dbUser, $dbPass) or die ('Error connecting to mysql: ' . mysqli_error($link));
mysqli_select_db($link2, $dbDatabase);

$link3 = mysqli_connect($dbHost, $dbUser, $dbPass) or die ('Error connecting to mysql: ' . mysqli_error($link));
mysqli_select_db($link3, $dbDatabase);

$link4 = mysqli_connect($dbHost, $dbUser, $dbPass) or die ('Error connecting to mysql: ' . mysqli_error($link));
mysqli_select_db($link4, $dbDatabase);

$link_insertar_coment = mysqli_connect($dbHost, $dbUser, $dbPass) or die ('Error connecting to mysql: ' . mysqli_error($link));
mysqli_select_db($link_insertar_coment, $dbDatabase);
?>
